package com.syyo.gulimall.member.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.syyo.gulimall.member.domain.entity.MemberReceiveAddressEntity;
import com.syyo.gulimall.member.domain.req.MemberReceiveAddressReq;

import java.util.List;

/**
 * 会员收货地址
 *
 * @author syyo
 * @email syyo@gmail.com
 * @date 2021-01-20 09:52:10
 */
public interface MemberReceiveAddressService extends IService<MemberReceiveAddressEntity> {

    /**
     * 新增
     */
    int add(MemberReceiveAddressReq req);

    /**
     * 删除
     */
    int del(Integer id);

    /**
     * 编辑
     */
    int edit(MemberReceiveAddressReq req);

    /**
     * 详情
     */
    MemberReceiveAddressEntity findOne(Long id);

    /**
     * 列表
     */
    IPage<MemberReceiveAddressEntity> findAll(Integer pageNum, Integer pageSize, MemberReceiveAddressReq req);

    List<MemberReceiveAddressEntity> listAddress(Long memberId);
}

